using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class MsgInfo
	{
		#region CONSTRUCTORS
		public MsgInfo()
		{
		
			this.m_msgID = Util.NULL_INT;
			this.m_msgCode = Util.NULL_STRING;
			this.m_msgType = Util.NULL_BYTE;
			this.m_contentType = Util.NULL_BYTE;
			this.m_content1 = Util.NULL_STRING;
			this.m_content2 = Util.NULL_STRING;
			this.m_content3 = Util.NULL_STRING;
			this.m_description = Util.NULL_STRING;
		}
		public MsgInfo( int msgID,  string msgCode,  byte msgType,  byte contentType,  string content1,  string content2,  string content3,  string description)
		{
		
			this.m_msgID = msgID;
			this.m_msgCode = msgCode;
			this.m_msgType = msgType;
			this.m_contentType = contentType;
			this.m_content1 = content1;
			this.m_content2 = content2;
			this.m_content3 = content3;
			this.m_description = description;
		}
		public MsgInfo( DataRow dRow)
		{
		
			this.m_msgID = (int) Util.ReplaceDBNullTo(dRow["msgID"], Util.NULL_INT);
			this.m_msgCode = Util.ReplaceDBNullTo(dRow["msgCode"], Util.NULL_STRING).ToString();
			this.m_msgType = (byte) Util.ReplaceDBNullTo(dRow["msgType"], Util.NULL_BYTE);
			this.m_contentType = (byte) Util.ReplaceDBNullTo(dRow["contentType"], Util.NULL_BYTE);
			this.m_content1 = Util.ReplaceDBNullTo(dRow["content1"], Util.NULL_STRING).ToString();
			this.m_content2 = Util.ReplaceDBNullTo(dRow["content2"], Util.NULL_STRING).ToString();
			this.m_content3 = Util.ReplaceDBNullTo(dRow["content3"], Util.NULL_STRING).ToString();
			this.m_description = Util.ReplaceDBNullTo(dRow["description"], Util.NULL_STRING).ToString();
		}
		#endregion
		
		#region ATTRIBUTES
		private int m_msgID;
		private string m_msgCode;
		private byte m_msgType;
		private byte m_contentType;
		private string m_content1;
		private string m_content2;
		private string m_content3;
		private string m_description;
		#endregion
		
		#region PROPERTIES
		public int MsgID
		{
			get
			{
				return this.m_msgID;
			}
			set
			{
				this.m_msgID = value;
			}
		}
		
		public string MsgCode
		{
			get
			{
				return this.m_msgCode;
			}
			set
			{
				this.m_msgCode = value;
			}
		}
		
		public byte MsgType
		{
			get
			{
				return this.m_msgType;
			}
			set
			{
				this.m_msgType = value;
			}
		}
		
		public byte ContentType
		{
			get
			{
				return this.m_contentType;
			}
			set
			{
				this.m_contentType = value;
			}
		}
		
		public string Content1
		{
			get
			{
				return this.m_content1;
			}
			set
			{
				this.m_content1 = value;
			}
		}
		
		public string Content2
		{
			get
			{
				return this.m_content2;
			}
			set
			{
				this.m_content2 = value;
			}
		}
		
		public string Content3
		{
			get
			{
				return this.m_content3;
			}
			set
			{
				this.m_content3 = value;
			}
		}
		
		public string Description
		{
			get
			{
				return this.m_description;
			}
			set
			{
				this.m_description = value;
			}
		}
		
		#endregion
		
	}
}